package day09;

import sun.awt.windows.ThemeReader;

/**
 * 使用线程方式二创建两个线程:分别输出1000次，你好和再见
 * @author Bonnie
 *
 */
public class Test02 {
    public static void main(String[] args) {
        ThreadWithRunnable task1 = new ThreadWithRunnable("t1","你好");
        ThreadWithRunnable task2 = new ThreadWithRunnable("t2","再见");
        Thread t1 = new Thread(task1);
        Thread t2 = new Thread(task2);
        t1.start();
        t2.start();
    }
}
